package expertandevaluatetaskrelationship

import (
	dbModel "ZHONGYIHANGYAN/bean/dbModel"
	"ZHONGYIHANGYAN/mysql"
)

type ExpertAndEvaluateTaskRelationshipManage struct {
	mysql.DataBase
}

var defaultExpertAndEvaluateTaskRelationshipManage = &ExpertAndEvaluateTaskRelationshipManage{}

func Manage() *ExpertAndEvaluateTaskRelationshipManage {
	return defaultExpertAndEvaluateTaskRelationshipManage
}

// 初始化指标表
func InitTable(DB *mysql.MysqlGorm) {
	defaultExpertAndEvaluateTaskRelationshipManage.DataBase = DB
	defaultExpertAndEvaluateTaskRelationshipManage.autoMigrate()
}

func (m *ExpertAndEvaluateTaskRelationshipManage) autoMigrate() {
	m.DataBase.AutoMigrate(&dbModel.ExpertAndEvaluateTaskRelationship{})
}
